﻿using Shop.Model.DB;
using Shop.RemoteModel.LogisticsConfig.Model;
using WeDonekRpc.Model;

namespace Shop.Repository
{
    public interface ILogisticsConfigRepository : IShopBaseRepository<DBLogisticsConfig, long>
    {
        LogisticsConfigDto[] GetAreaConfig (long templateId, int[] areaId);
        long Add (LogisticsConfigAdd add);
        Result[] Query<Result> (LQueryParam query, IBasicPage paging, out int count) where Result : class;
        void SetIsEnable (long id, bool enable);
        Result[] Gets<Result> (LQueryParam query) where Result : class, new();
    }
}